Revert "widget-factory: Usefully demo Frame shadow types"
authorDaniel Boles <dboles.src@gmail.com>
Mon, 2 Oct 2017 07:10:32 +0000 (08:10 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Mon, 2 Oct 2017 18:50:02 +0000 (19:50 +0100)
This reverts commit 6ee2bf628614e9c14b061bd48c2efd2c9515ab19.

There is a way to get different kinds of borders: it's CSS. It's better
to keep the 4 Frames and demo the different styles we can do using CSS.

demos/widget-factory/widget-factory.ui

index be50421e521929abf22c1cc7d6b3d8fb2d8c8625..253a4aed6889f8c7d876cdea4eb3145d320fcf24 100644 (file)
@@ -1160,7 +1160,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <property name="shadow_type">in</property>
                             <child type="label">
                               <object class="GtkLabel" id="label1">
-                                <property name="label" translatable="yes">&lt;b&gt;Shadow&lt;/b&gt;</property>
+                                <property name="label" translatable="yes">&lt;b&gt;In&lt;/b&gt;</property>
                                 <property name="use_markup">1</property>
                               </object>
                             </child>
@@ -1168,10 +1168,10 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                         </child>
                         <child>
                           <object class="GtkFrame" id="frame2">
-                            <property name="shadow_type">none</property>
+                            <property name="shadow_type">out</property>
                             <child type="label">
                               <object class="GtkLabel" id="label2">
-                                <property name="label" translatable="yes">&lt;b&gt;No shadow&lt;/b&gt;</property>
+                                <property name="label" translatable="yes">&lt;b&gt;Out&lt;/b&gt;</property>
                                 <property name="use_markup">1</property>
                               </object>
                             </child>
@@ -1180,6 +1180,33 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                             <property name="position">1</property>
                           </packing>
                         </child>
+                        <child>
+                          <object class="GtkFrame" id="frame3">
+                            <child type="label">
+                              <object class="GtkLabel" id="label17">
+                                <property name="label" translatable="yes">&lt;b&gt;Etched in&lt;/b&gt;</property>
+                                <property name="use_markup">1</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkFrame" id="frame4">
+                            <property name="shadow_type">etched-out</property>
+                            <child type="label">
+                              <object class="GtkLabel" id="label18">
+                                <property name="label" translatable="yes">&lt;b&gt;Etched out&lt;/b&gt;</property>
+                                <property name="use_markup">1</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="position">3</property>
+                          </packing>
+                        </child>
                       </object>
                       <packing>
                         <property name="position">6</property>